class CreateStats < ActiveRecord::Migration
  def self.up
    create_table :stats do |t|
      t.column :project_hash, :string
      t.column :project_url, :string
      t.column :shared, :boolean
      t.column :created_at, :datetime
      t.column :crap, :decimal,  :precision => 8, :scale => 2
      t.column :crap_load, :int
      t.column :crap_methods, :int
      t.column :total_methods, :int
    end
  end

  def self.down
    drop_table :stats
  end
end
